# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=vkbasalt
pkgver=0.3.2.10
pkgrel=0
pkgdesc="vulkan post processing layer for linux"
url="https://github.com/DadSchoorse/vkBasalt"
license="Zlib"
arch="all"
makedepends="
	glslang
	libx11-dev
	meson
	spirv-headers
	vulkan-headers
	"
subpackages="
	$pkgname-doc
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/DadSchoorse/vkBasalt/releases/download/v0.3.2.10/vkBasalt-$pkgver.tar.gz
	"

builddir="$srcdir/vkBasalt-$pkgver"
options="!check" # no test suite

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

}

doc() {
	install -Dm 644 "$builddir"/config/vkBasalt.conf "$subpkgdir"/usr/share/vkBasalt/vkBasalt.conf.example
}

sha512sums="
b80ca0320b99832d05d2d38e5e9d8f5981a5608d1509a1e4ea16bb4d0970ac13474e53e35a1634f2683e24c9ca0e4661545edd388b63b23c63782998ec0e03a4  vkbasalt-0.3.2.10.tar.gz
"
